package nc.bs.gl.vc.plugin;

import nc.bs.gl.pubinterface.IVoucherDelete;
import nc.bs.gl.vc.bp.GenVoucherBp;
import nc.vo.gl.pubinterface.VoucherOperateInterfaceVO;
import nc.vo.gl.pubvoucher.OperationResultVO;
import nc.vo.pub.BusinessException;

public class VCVoucherPlugin implements IVoucherDelete{

	public OperationResultVO[] afterDelete(VoucherOperateInterfaceVO vo)
			throws BusinessException {
		for(String pk_destvoucher : vo.pk_vouchers){
			new GenVoucherBp().deleteVc(pk_destvoucher);
		}
		return null;
	}

	public OperationResultVO[] beforeDelete(VoucherOperateInterfaceVO vo)
			throws BusinessException {
		return null;
	}

}
